<template>
  <div class="footer">
    <van-tabbar route>
      <van-tabbar-item v-for="(item,index) in footer" :key="index" replace :to="item.router" :icon="item.icon">
        {{item.name}}
      </van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data(){
    return{
      footer:[
        {name:'首页',router:'/home',icon:'home-o'},
        {name:'提现',router:'/taskmanage',icon:'friends-o'},
        {name:'任务进度',router:'/taskdetail',icon:'orders-o'},
        {name:'我的',router:'/mine',icon:'user-o'}
      ],
    }
  },
}
</script>

<style lang="stylus">
.footer{
  width 100%
  position fixed
  z-index 999
  bottom 0
}
</style>


